package com.ksyun.campus.metaserver.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ksyun.campus.metaserver.domain.DataServerInfo;
import com.ksyun.campus.metaserver.domain.FileInfo;
import com.ksyun.campus.metaserver.domain.Result;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zsy
 * @since 2024-08-17
 */
public interface FileService extends IService<FileInfo> {

    boolean createFile(String fileSystemName, String path, List<DataServerInfo> dsList);

    Result getFileInfo(String fileSystemName, String path);

    boolean createFolder(String fileSystemName, String path, List<DataServerInfo> dsList);

    Result getListdir(String fileSystemName, String path);

    Result delete(String fileSystemName, String path);

    Result openFile(String fileSystemName, String path);

    Result updateFileInfo(String fileSystemName, String path, FileInfo fileInfo);
}
